Using version 1.20 with a forward compatible 3.2 core context is incorrect
since OpenGL 3.2 deprecates shader version 1.20 (See section E.2). The latest
fglrx drivers will not compile these shaders.
https://bugzilla.gnome.org/show_bug.cgi?id=744203
use_texture_2d_program (GdkGLContextPaintData *paint_data)
{
const char *vertex_shader_code =
- "#version 120\n"
+ "#version 150\n"
"uniform sampler2D map;"
"attribute vec2 position;\n"
"attribute vec2 uv;\n"
" vUv = uv;\n"
"}\n";
const char *fragment_shader_code =
- "#version 120\n"
+ "#version 150\n"
"varying vec2 vUv;\n"
"uniform sampler2D map;\n"
"void main() {\n"
use_texture_rect_program (GdkGLContextPaintData *paint_data)
{
const char *vertex_shader_code =
- "#version 120\n"
+ "#version 150\n"
"uniform sampler2DRect map;"
"attribute vec2 position;\n"
"attribute vec2 uv;\n"
" vUv = uv;\n"
"}\n";
const char *fragment_shader_code =
- "#version 120\n"
+ "#version 150\n"
"varying vec2 vUv;\n"
"uniform sampler2DRect map;\n"
"void main() {\n"